<include file="public:top"/>
<div class="container">
	<div class="maincontent">
		<h3 class="pull-left">
			<i class="glyphicon glyphicon-home"></i>
			班级留言<small>Class message</small>
		</h3>
		<div class="clear"></div>
		<div class='hr'></div>
		<div class="row-space">
			<table class="table table-bordered table-hover">
			    <tr>
			    	<th>用户名</th>
			    	<th>邮箱</th>
			    	<th>QQ</th>
			    	<th>注册时间</th>
			    	<th>用户类型</th>
			    	<th>状态</th>
			    	<th>操作</th>
			    </tr>
			    <foreach name="users" item="vo" key="key">			
		            <tr>
		                <td>{{$vo.u_name}}</td>
		                <td>{{$vo.u_email}}</td>
		                <td>{{$vo.u_qq}}</td>
		                <td>{{$vo.u_date|date="Y-m-d",###}}</td>
		                <td>
		                	<if condition="($vo['u_type'] eq commonModel::$isSuperType)">
			                    超级管理员
			                <elseif condition="($vo['u_type'] eq commonModel::$isClassType)" />
                                班级用户
			                <else />
			                    浏览者
			                </if>
		                </td>
		                <td>
		                    <if condition="$vo.status eq 1">
		                       使用中
		                    <else />
		                        已锁定
		                    </if>
		                </td>
		                <td>
			                <if condition="$vo.status eq 1">
			                    <a href="<?php echo Url::lockUser($vo['u_id'], 0);?>">锁定</a>
			                <else />
			                    <a href="<?php echo Url::lockUser($vo['u_id'], 1);?>">解锁</a>
			                </if>
		                </td>
			        </tr>
		        </foreach>
			</table>
			<div class="hr"></div>
			<div>{{$showPage}}</div>
		</div>
	</div>
</div>
<include file="public:footer"/>
